package com.hundsun.s3.client.pub.common;


/**
 * 返回结果
 * @author chenji23607
 *
 */
public class ResultMsg {
	
	/**
	 * 操作成功返回这个state
	 */
	public static final String STATE_SUCCESS = "success";
	
	/**
	 * 操作失败返回这个state
	 */
	public static final String STATE_FAIL = "fail";
	
	/**
	 * 服务器出现错误则使用这个state
	 */
	public static final String STATE_ERROR = "error";
	
	
	
	/**
	 * 用户名不存在
	 */
	public static final String MSG_USERNAME_NOT_EXIST = "用户名不存在";
	
	/**
	 * 用户名密码不匹配
	 */
	public static final String MSG_PROOF_NOT_MATCHING = "用户名密码不匹配";
	
	
	/**
	 * 邮箱故障（发送激活邮件失败时使用这个错误信息）
	 */
	public static final String MSG_MAILBOX_FAULT = "邮箱故障";
	
	
	/**
	 * 客户账号激活提示
	 */
	public static final String MSG_ACTIVATE_HINT = "请您注意查收激活邮件，并点击激活链接";
	
	
	/**
	 * 激活链接超时
	 */
	public static final String MSG_LINK_TIMEOUT = "激活链接超时";
	
	/**
	 * 激活成功提示
	 */
	public static final String MSG_ACTIVATE_SUCC = "激活成功";
	
	/**
	 * 邮箱不存在
	 */
	public static final String MSG_MAILBOX_NOT_EXITS = "该邮箱没有绑定账号";
	
	
	/**
	 * 注销成功提示
	 */
	public static final String MSG_CANCEL_SUCC = "注销成功";
	
	
	/**
	 * 注销失败提示
	 */
	public static final String MSG_CANCEL_FAIL = "注销失败";
	
	
	
	/**
	 * 信息修改成功提示
	 */
	public static final String MSG_UPDATE_SUCC = "修改成功";
	
	
	/**
	 * 信息修改失败提示
	 */
	public static final String MSG_UPDATE_FAIL = "修改失败";
	
	
	/**
	 * 返回信息的状态
	 */
	private String state;
	
	/**
	 * 返回的信息
	 */
	private String returnMsg = "";	
	
	public ResultMsg(){}
	
	
	public ResultMsg(String state, String returnMsg) {
		super();
		this.state = state;
		this.returnMsg = returnMsg;
	}


	public String getState() {
		return state;
	}


	public void setState(String state) {
		this.state = state;
	}


	public String getReturnMsg() {
		return returnMsg;
	}

	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}
}
